<?php

use Illuminate\Support\Facades\Route;

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/
//引用index控制器
use App\Http\Controllers\index;
Route::any('/',[index::class,'index']);//渲染首页
Route::match(['get','post'],'enter',[index::class,'enter']);//渲染走进中环页
Route::match(['get','post'],'company',[index::class,'company']);//渲染公司简介
Route::match(['get','post'],'cuture',[index::class,'cuture']);//渲染企业文化
Route::match(['get','post'],'contact',[index::class,'contact']);//渲染联系我们
Route::match(['get','post'],'join',[index::class,'join']);//渲染人力资源
//引用housedetail控制器
use App\Http\Controllers\housedetail;
Route::match(['get','post'],'housedetail/{id}',[housedetail::class,"housedetail"]);//渲染详情
Route::match(['get','post'],'map',[housedetail::class,'map']);//渲染地图
//引用user控制器
use App\Http\Controllers\User;
Route::match(['get','post'],'member',[User::class,'User']);//渲染我的
//引用taxi控制器
use App\Http\Controllers\taxi;
Route::match(['get','post'],'houselist',[taxi::class,'houselist']);//渲染二手房
Route::match(['get','post'],'housestyle/{id}',[taxi::class,'housestyle']);//渲染二手房详情
//引用agent控制器
use App\Http\Controllers\agent;
Route::match(['get','post'],'agent',[agent::class,'agent']);//渲染经纪人
//引用rentlist控制器
use App\Http\Controllers\rentlist;
Route::match(['get','post'],'rentlist',[rentlist::class,'rentlist']);//渲染租房
Route::match(['get','post'],'rentstyle/{id}',[taxi::class,'rentstyle']);//渲染租房详情
//引用login控制器
use App\Http\Controllers\Login;
Route::match(['get','post'],'login',[Login::class,'login']);//登录页
Route::match(['get','post'],'login_ok',[Login::class,'login_ok']);//登录功能
Route::match(['get','post'],'login_out',[Login::class,'login_out']);//退出功能
//引用register控制器
use App\Http\Controllers\Register;
Route::match(['get','post'],'register',[register::class,'register']);//注册页
Route::match(['get','post'],'register_ok',[register::class,'register_ok']);//注册功能

//后台
//引用index_admin控制器
use App\Http\Controllers\index_admin;
Route::match(['get','post'],'admin',[index_admin::class,'index_admin'])->middleware(admin::class);//默认首页
Route::match(['get','post'],'admin_admin',[index_admin::class,'admin_admin']);//后台首页
//引用user_index控制器
use App\Http\Controllers\user_index;
Route::match(['get','post'],'user_index',[user_index::class,'user_index']);//前台页面
Route::match(['get','post'],'user_refer',[user_index::class,'user_refer']);//添加页面
Route::match(['get','post'],'user_add',[user_index::class,'user_add']);//添加数据
Route::match(['get','post'],'user_delete',[user_index::class,'user_delete']);//删除数据
Route::match(['get','post'],'user_alter',[user_index::class,'user_alter']);//修改页面
Route::match(['get','post'],'user_update',[user_index::class,'user_update']);//修改数据
//引用user_admin控制器
use App\Http\Controllers\user_admin;
Route::match(['get','post'],'user_admin',[user_admin::class,'user_admin']);//后台用户
Route::match(['get','post'],'useradd_admin',[user_admin::class,'useradd_admin']);//添加页面
//引用agent_admin控制器
use App\Http\Controllers\agent_admin;
Route::match(['get','post'],'agent_admin',[agent_admin::class,'agent_admin']);//经纪人管理
Route::match(['get','post'],'agentadd_admin',[agent_admin::class,'agentadd_admin']);//经纪人新增
Route::match(['get','post'],'agent_add',[agent_admin::class,'agent_add']);//经纪人新增
Route::match(['get','post'],'agentedit_admin',[agent_admin::class,'agentedit_admin']);//经纪人修改
Route::match(['get','post'],'agentUpdate_admin',[agent_admin::class,'agentUpdate_admin']);//经纪人修改
Route::match(['get','post'],'agent_detele',[agent_admin::class,'agent_detele']);//经纪人删除
use App\Http\Controllers\city;
Route::match(['get','post'],'city',[city::class,'city']);//经纪人所属区域
//引用house_admin控制器
use App\Http\Controllers\house_admin;
Route::match(['get','post'],'house_admin',[house_admin::class,'house_admin']);//租房管理
Route::match(['get','post'],'houseadd_admin',[house_admin::class,'houseadd_admin']);//租房添加
//引用renting_admin控制器
use App\Http\Controllers\renting_admin;
Route::match(['get','post'],'renting_admin',[renting_admin::class,'renting_admin']);//二手房管理
Route::match(['get','post'],'rentingadd_admin',[renting_admin::class,'rentingadd_admin']);//二手房添加
//引用login_admin控制器
use App\Http\Controllers\login_admin;
Route::match(['get','post'],'login_admin',[login_admin::class,'login_admin']);//登录页面
Route::match(['get','post'],'login_admin_ok',[login_admin::class,'login_admin_ok']);//登录功能
Route::match(['get','post'],'login_admin_out',[login_admin::class,'login_admin_out']);//退出登录
//修改密码
use App\Http\Controllers\dpwd_admin;
Route::match(['get','post'],'dpwd',[dpwd_admin::class,'dpwd_admin']);//修改密码
Route::match(['get','post'],'dpwd_ok',[dpwd_admin::class,'dpwd_admin_ok']);//修改密码
//title控制器
use App\Http\Controllers\title_admin;
Route::match(['get','post'],'title_admin',[title_admin::class,'title_admin']);//title
Route::match(['get','post'],'title_admin_del',[title_admin::class,'title_admin_del']);//title删除
Route::match(['get','post'],'title_admin_up',[title_admin::class,'title_admin_up']);//title修改页
Route::match(['get','post'],'title_admin_up_ok',[title_admin::class,'title_admin_up_ok']);//title修改
Route::match(['get','post'],'title_admin_add',[title_admin::class,'title_admin_add']);//title添加页
Route::match(['get','post'],'title_admin_add_ok',[title_admin::class,'title_admin_add_ok']);//title添加





